package com.znsd.zl.contract.openfeign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;

/**
 * @ClassName: SysOssService
 * @Program: zlhouse-manage
 * @Description: 系统服务oss openfeign远程调用接口
 * @Author: tangjun
 * @Date: 2020-08-22 17:32
 * @Version 1.0
 **/
@FeignClient(value = "zlhouse-sys")
public interface SysOssService {


	/**
	 * 表单类型文件对象上传到oss远程接口
	 * @param file  上传的文件
	 * @return
	 */
	@PostMapping(value = "/app/feignUpload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
	String feignUpload(@RequestPart("file") MultipartFile file);
}
